package com.caipin.domain.web;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:51
 * @Description: TODO
 */
public class EventStatistics {
    private String eventName;

    private Long number;

    public com.caipin.domain.web.EventStatistics setEventName(String eventName) {
        this.eventName = eventName;
        return this;
    }

    public com.caipin.domain.web.EventStatistics setNumber(Long number) {
        this.number = number;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.web.EventStatistics))
            return false;
        com.caipin.domain.web.EventStatistics other = (com.caipin.domain.web.EventStatistics)o;
        if (!other.canEqual(this))
            return false;
        Object this$eventName = getEventName(), other$eventName = other.getEventName();
        if ((this$eventName == null) ? (other$eventName != null) : !this$eventName.equals(other$eventName))
            return false;
        Object this$number = getNumber(), other$number = other.getNumber();
        return !((this$number == null) ? (other$number != null) : !this$number.equals(other$number));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.web.EventStatistics;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $eventName = getEventName();
        result = result * 59 + (($eventName == null) ? 43 : $eventName.hashCode());
        Object $number = getNumber();
        return result * 59 + (($number == null) ? 43 : $number.hashCode());
    }

    public String toString() {
        return "EventStatistics(eventName=" + getEventName() + ", number=" + getNumber() + ")";
    }

    public EventStatistics(String eventName, Long number) {
        this.eventName = eventName;
        this.number = number;
    }

    public EventStatistics() {}

    public String getEventName() {
        return this.eventName;
    }

    public Long getNumber() {
        return this.number;
    }
}

